import Vue from 'vue'
import 'normalize.css/normalize.css'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import '@/styles/index.scss' // global css

import App from './App'

import store from './store'
import componentPlugin from '@/components/index'

Vue.use(componentPlugin)
import router from './router'

import '@/icons' // icon
// 路由守卫的引入需要在router引入之后再引入
// 如果再引入之前就引入路由守卫会报错
import './permission.js'

Vue.use(ElementUI)
Vue.config.productionTip = false

// vue实例化
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
